# 作者：SP
# 开发时间：2025/3/6 21:34
class Car:
    def __init__(self,make,model,year):
      self.make = make
      self.model = model
      self.year = year
      self.odometer_reading = 0      #类属性的默认值

    def get_descriptive_name(self):
        print(f'{self.year} {self.model} {self.make}')

    def read_odometer(self):
        """打印汽车里程的消息"""
        print(f'This car has {self.odometer_reading} mail on it')

my_new_car = Car('audi','A4',2019)
print(my_new_car.get_descriptive_name())
my_new_car.read_odometer()